<!-- 热门校招组件 -->
<template>
  <div class="common-tab-box job-tab-box school-page school-hotrecruitment">
    <div class="wrap">
      <h3 class="section-title">热门校招</h3>
      <h3 class="permanent">
        <span class="cur">全职</span>
        <span>兼职</span>
        <span>校招</span>
      </h3>
    </div>
    <ul class="cur">
      <li>
        <div class="sub-li">
          <a href="">
            <p>
              <span class="title-text">实验员</span>
              <span class="salary">5-7k</span>
            </p>
            <p class="job-text-tag">
              <span>深圳</span>
              <span>1年以内</span>
              <span>高中</span>
            </p>
          </a>
          <a href="" class="user-info">
            <p>
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/…3760b.png?x-oss-process=image/resize,w_60,limit_0"
                alt=""
              />
              欣旺达
              <span class="user-text">
                仪器仪表/工业自动化
                <span class="vline"></span>已上市
              </span>
            </p>
          </a>
        </div>
        <div class="sub-li">
          <a href="">
            <p>
              <span class="title-text">实验员</span>
              <span class="salary">5-7k</span>
            </p>
            <p class="job-text-tag">
              <span>深圳</span>
              <span>1年以内</span>
              <span>高中</span>
            </p>
          </a>
          <a href="" class="user-info">
            <p>
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/…3760b.png?x-oss-process=image/resize,w_60,limit_0"
                alt=""
              />
              欣旺达
              <span class="user-text">
                仪器仪表/工业自动化
                <span class="vline"></span>已上市
              </span>
            </p>
          </a>
        </div>
        <div class="sub-li">
          <a href="">
            <p>
              <span class="title-text">实验员</span>
              <span class="salary">5-7k</span>
            </p>
            <p class="job-text-tag">
              <span>深圳</span>
              <span>1年以内</span>
              <span>高中</span>
            </p>
          </a>
          <a href="" class="user-info">
            <p>
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/…3760b.png?x-oss-process=image/resize,w_60,limit_0"
                alt=""
              />
              欣旺达
              <span class="user-text">
                仪器仪表/工业自动化
                <span class="vline"></span>已上市
              </span>
            </p>
          </a>
        </div>
        <div class="sub-li">
          <a href="">
            <p>
              <span class="title-text">实验员</span>
              <span class="salary">5-7k</span>
            </p>
            <p class="job-text-tag">
              <span>深圳</span>
              <span>1年以内</span>
              <span>高中</span>
            </p>
          </a>
          <a href="" class="user-info">
            <p>
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/…3760b.png?x-oss-process=image/resize,w_60,limit_0"
                alt=""
              />
              欣旺达
              <span class="user-text">
                仪器仪表/工业自动化
                <span class="vline"></span>已上市
              </span>
            </p>
          </a>
        </div>
        <div class="sub-li">
          <a href="">
            <p>
              <span class="title-text">实验员</span>
              <span class="salary">5-7k</span>
            </p>
            <p class="job-text-tag">
              <span>深圳</span>
              <span>1年以内</span>
              <span>高中</span>
            </p>
          </a>
          <a href="" class="user-info">
            <p>
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/…3760b.png?x-oss-process=image/resize,w_60,limit_0"
                alt=""
              />
              欣旺达
              <span class="user-text">
                仪器仪表/工业自动化
                <span class="vline"></span>已上市
              </span>
            </p>
          </a>
        </div>
        <div class="sub-li">
          <a href="">
            <p>
              <span class="title-text">实验员</span>
              <span class="salary">5-7k</span>
            </p>
            <p class="job-text-tag">
              <span>深圳</span>
              <span>1年以内</span>
              <span>高中</span>
            </p>
          </a>
          <a href="" class="user-info">
            <p>
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/…3760b.png?x-oss-process=image/resize,w_60,limit_0"
                alt=""
              />
              欣旺达
              <span class="user-text">
                仪器仪表/工业自动化
                <span class="vline"></span>已上市
              </span>
            </p>
          </a>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "SchoolHotrecruitment",
};
</script>

<style lang="less" scoped>
.common-tab-box {
  margin-top: 48px;
  clear: both;

  .wrap {
    display: flex;
    align-items: center;
  }

  h3 {
    position: relative;
  }

  .section-title {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    line-height: 40px;
    height: 40px;
    margin-bottom: 20px;
    margin-right: 40px;
    // display: inline-block;
    // position: relative;
  }

  .section-title + h3 {
    height: 40px;
    display: inline-block;
    vertical-align: middle;

    span {
      font-size: 16px;
      font-weight: 500;
      color: #222;
      background: 0 0;
      border-radius: 6px;
      padding: 4px 16px;
      margin-right: 12px;
      width: auto;
      line-height: 22px;
      text-align: center;
    }

    span.cur {
      background: #00bebd;
      color: #fff;
    }
  }

  .sub-li {
    width: 384px;
    height: 136px;
    background: #fff;
    border-radius: 12px;

    p {
      height: 22px;
      line-break: 22px;
      font-size: 15px;
      color: #61687c;
      margin: 0 auto;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      position: relative;

      .title-text {
        font-size: 16px;
        font-weight: 500;
        color: #222;
        line-height: 22px;
        margin-left: 20px;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
      }

      .salary {
        font-size: 15px;
        font-weight: 500;
        color: #fe574a;
        position: absolute;
        right: 20px;
        top: 0;
        line-height: 22px;
      }
    }

    a {
      display: block;
      padding: 16px 0 16px 0;
      height: auto;
      text-decoration: none;
      color: #414a60;

      .job-text-tag {
        height: 22px;
        overflow: hidden;
        white-space: normal;
        padding: 0 20px;
        margin-top: 12px;
        line-height: 22px;

        span {
          float: left;
          height: 22px;
          background: #f8f8f8;
          border-radius: 4px;
          padding: 2px 8px;
          font-size: 13px;
          font-weight: 400;
          color: #666;
          line-height: 18px;
        }
      }
    }

    .user-info {
      display: block;
      border-radius: 0 0 12px 12px;

      p {
        height: 48px;
        line-height: 48px;
        background: linear-gradient(90deg, #f5fcfc 0, #fcfbfa 100%);
        border-radius: 0 0 12px 12px;
        width: auto;
        padding: 0 20px;
        font-size: 13px;
        font-weight: 400;
        color: #666;
        margin: 0 auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        position: relative;
      }

      img {
        width: 24px;
        height: 24px;
        margin-right: 8px;
        border-radius: 4px;
        vertical-align: middle;
        border: none;
      }
    }
  }

  .user-text {
    float: right;
    color: #666;
    margin-left: 10px;
    font-size: 12px;

    .vline {
      display: inline-block;
      width: 1px;
      height: 12px;
      vertical-align: middle;
      background: #e0e0e0;
      margin: 0 10px;
    }
  }
}
</style>